package com.lj.back.manage.scaffold.module.sys.DTO;

import com.lj.back.manage.scaffold.common.DTO.PageQuery;
import com.lj.back.manage.scaffold.common.annotation.valid.EnumCheck;
import com.lj.back.manage.scaffold.module.sys.enums.OperateTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 业务日志分页查询对象
 * @author lv
 * @version 1.0.0
 */
@Data
@ApiModel("业务日志分页查询对象")
@EqualsAndHashCode(callSuper=true)
public class SysLogPageQuery extends PageQuery {

    @ApiModelProperty(value = "开始时间",example = "2020-06-15 13:00:00")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间",example = "2020-06-17 13:00:00")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "操作类型",example = "1")
    @EnumCheck(enumClass = OperateTypeEnum.class)
    private String operateType;
}
